package com.emapp.lccode.bean;

import com.emapp.lccode.utils.MapAppUtil;

import java.io.Serializable;

/**
 * Author:YanshanZhang
 * E-mail:690810892@qq.com
 * Date: 2022/3/30 14:33
 * Desc:
 */
public class UpLatLng implements Serializable {
    double wgs_lng;
    double wgs_lat;
    double lng;
    double lat;
    long add_time;

    public UpLatLng(double lng, double lat) {
        this.lng = lng;
        this.lat = lat;
        double[] g = MapAppUtil.gcj02_To_Gps84(lat, lng);
        wgs_lat = g[0];
        wgs_lng = g[1];
        add_time = System.currentTimeMillis() / 1000;
    }

    public double getWgs_lng() {
        return wgs_lng;
    }

    public void setWgs_lng(double wgs_lng) {
        this.wgs_lng = wgs_lng;
    }

    public double getWgs_lat() {
        return wgs_lat;
    }

    public void setWgs_lat(double wgs_lat) {
        this.wgs_lat = wgs_lat;
    }

    public double getLng() {
        return lng;
    }

    public void setLng(double lng) {
        this.lng = lng;
    }

    public double getLat() {
        return lat;
    }

    public void setLat(double lat) {
        this.lat = lat;
    }

    public long getAdd_time() {
        return add_time;
    }

    public void setAdd_time(long add_time) {
        this.add_time = add_time;
    }
}
